import mockRequest from '@/utils/mockRequest'
const state = {
    chartMockData:{}
}
const actions = {
    async getMockData({commit}){
        const res = await mockRequest.get('/home/list')
        if(res.code === 200){
            commit(GETMOCKDATA,res.data)
        }
    }
}
const mutations = {
    GETMOCKDATA(state,data){
        state.chartMockData = data
    }
}
export default {
    // nameSpaced:true,
    state,
    actions,
    mutations
}